<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="../css/index.css" />
</head>

<body>
    <div class="wrap">
        <div class="wrap-hd">
            <h1 class="wrap-title">—— 踏实勤奋努力 注定技术到手 ——</h1>
            <p class="wrap-describe">中大型互联网企业需要真正有技术的人</p>
        </div>
        <div class="wrap-bd">
            <ul class="j-list">
                <li class="j-item">
                    <!-- <img src="../images/1.jpg" alt=""> -->
                    <div class="item-describe">
                        <h2 class="position">前端工程师0(北京)</h2>
                        <span class="income">月薪15k</span>
                    </div>
                </li>
                <li class="j-item">
                    <!-- <img src="../images/2.jpg" alt=""> -->
                    <div class="item-describe">
                        <h2 class="position">前端工程师1(北京)</h2>
                        <span class="income">月薪15k</span>
                    </div>
                </li>
                <li class="j-item">
                    <!-- <img src="../images/3.jpg" alt=""> -->
                    <div class="item-describe">
                        <h2 class="position">前端工程师2(北京)</h2>
                        <span class="income">月薪15k</span>
                    </div>
                </li>
                <li class="j-item">
                    <!-- <img src="../images/4.jpg" alt=""> -->
                    <div class="item-describe">
                        <h2 class="position">前端工程师3(北京)</h2>
                        <span class="income">月薪15k</span>
                    </div>
                </li>
                <li class="j-item">
                    <!-- <img src="../images/5.jpg" alt=""> -->
                    <div class="item-describe">
                        <h2 class="position">前端工程师4(北京)</h2>
                        <span class="income">月薪15k</span>
                    </div>
                </li>
                <li class="j-item">
                    <!-- <img src="../images/6.jpg" alt=""> -->
                    <div class="item-describe">
                        <h2 class="position">前端工程师5(北京)</h2>
                        <span class="income">月薪15k</span>
                    </div>
                </li>
                <li class="j-item">
                    <!-- <img src="../images/7.jpg" alt=""> -->
                    <div class="item-describe">
                        <h2 class="position">前端工程师6(北京)</h2>
                        <span class="income">月薪15k</span>
                    </div>
                </li>
                <li class="j-item">
                    <!-- <img src="../images/8.jpg" alt=""> -->
                    <div class="item-describe">
                        <h2 class="position">前端工程师7(北京)</h2>
                        <span class="income">月薪15k</span>
                    </div>
                </li>
                <li class="j-item">
                    <!-- <img src="../images/9.jpg" alt=""> -->
                    <div class="item-describe">
                        <h2 class="position">前端工程师8(北京)</h2>
                        <span class="income">月薪15k</span>
                    </div>
                </li>
                <li class="j-item">
                    <!-- <img src="../images/10.jpg" alt=""> -->
                    <div class="item-describe">
                        <h2 class="position">前端工程师9(北京)</h2>
                        <span class="income">月薪15k</span>
                    </div>
                </li>
            </ul>
        </div>
    </div>

    <script type="text/javascript" src="../js/utils.js"></script>
    <script type="text/javascript" src="../js/index.js"></script>
    <script type="text/javascript">
        // var olist = document.getElementsByClassName('j-list')[0];

        // addEvent(olist, 'click', function (e) {
        //     var e = e || window.event,
        //         tar = e.target || e.srcElement,
        //         oitems = document.getElementsByClassName('j-item'),
        //         olistLen = oitems.length,
        //         itemDescribe = tar.getElementsByClassName('item-describe')[0],
        //         item;

        //     for (var i = 0; i < olistLen; i++) {
        //         item = oitems[i];
        //         itemDes = item.getElementsByClassName('item-describe')[0];
        //         itemDes.style.display = 'none';
        //     }
        //     itemDescribe.style.display = 'block';

        // });


        var oitems = document.getElementsByClassName('j-item'),
            olist = document.getElementsByClassName('j-list')[0];

        addEvent(olist, 'click', function (e) {
            var e = e || window.event,
                tar = e.target || e.srcElement,
                olistLen = window.oitems.length,
                itemDescribe = tar.getElementsByClassName('item-describe')[0],
                item;

            for (var i = 0; i < olistLen; i++) {
                item = oitems[i];
                itemDes = item.getElementsByClassName('item-describe')[0];
                itemDes.style.display = 'none';
            }
            itemDescribe.style.display = 'block';

        });

    </script>
</body>

</html>